package com.lazyboyl.sharding.proxy.net.entity;


/**
 * @author linzef
 * @since 2021-06-29
 * 类描述： 登录的实体类
 */
public class ShardingLoginInfo {

    public ShardingLoginInfo() {
        super();
    }

    public ShardingLoginInfo(Integer port, Integer bossThread, Integer workThread, String shardingProxyUser, String shardingProxyPass, String shardingProxyDatabaseName) {
        this.port = port;
        this.bossThread = bossThread;
        this.workThread = workThread;
        this.shardingProxyUser = shardingProxyUser;
        this.shardingProxyPass = shardingProxyPass;
        this.shardingProxyDatabaseName = shardingProxyDatabaseName;
    }

    /**
     * websocket的端口
     */
    private Integer port;

    /**
     * netty的boss线程数
     */
    private Integer bossThread;

    /**
     * netty的work线程数
     */
    private Integer workThread;

    /**
     * 连接shardingProxy的账号
     */
    private String shardingProxyUser;

    /**
     * 连接shardingProxy的密码
     */
    private String shardingProxyPass;

    /**
     * shardingProxy的库名
     */
    private String shardingProxyDatabaseName;

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getBossThread() {
        return bossThread;
    }

    public void setBossThread(Integer bossThread) {
        this.bossThread = bossThread;
    }

    public Integer getWorkThread() {
        return workThread;
    }

    public void setWorkThread(Integer workThread) {
        this.workThread = workThread;
    }

    public String getShardingProxyUser() {
        return shardingProxyUser;
    }

    public void setShardingProxyUser(String shardingProxyUser) {
        this.shardingProxyUser = shardingProxyUser;
    }

    public String getShardingProxyPass() {
        return shardingProxyPass;
    }

    public void setShardingProxyPass(String shardingProxyPass) {
        this.shardingProxyPass = shardingProxyPass;
    }

    public String getShardingProxyDatabaseName() {
        return shardingProxyDatabaseName;
    }

    public void setShardingProxyDatabaseName(String shardingProxyDatabaseName) {
        this.shardingProxyDatabaseName = shardingProxyDatabaseName;
    }
}
